﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Reporting.WinForms;
using CourseArraging.Common;

namespace CourseArraging.Frm.bbxx
{
    /// <summary>
    /// 版权所有
    /// 石世特@温州医学院 sst330381@gmail.com
    /// </summary> 
    public partial class FrmJcxxBb : Form
    {
        DataTable _dt = new DataTable();

        public FrmJcxxBb()
        {
            InitializeComponent();
        }

        public FrmJcxxBb(DataTable dt)
            : this()
        {
            _dt = dt;
            _dt.Columns["编号"].ColumnName = "grade_info_id";
            _dt.Columns["年级"].ColumnName = "grade_info_name";
        }

        private void FrmJcxxBb_Load(object sender, EventArgs e)
        {
            reportViewer1.LocalReport.ReportPath =
                GlobalVar.filePath + @"\bb\BbJcxx.rdlc";
            ReportDataSource rds = new ReportDataSource("DataSet1", _dt);
            reportViewer1.LocalReport.DataSources.Add(rds);
            this.reportViewer1.RefreshReport();
        }
    }
}
